package dao;

import domain.Product;
import utils.PageBean;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by guo on 2017/10/29.
 */
public interface Dao {
    List<Product> findAll();

    int deleteById(int pid);

    List<Product> Search(String pnamme) throws SQLException;

    int Add(Product product);

    Product findById(int pid);

    int Update(Product product);

    PageBean findPage(int currentPage, int pageSize);
}
